﻿
using Mono.Cecil;

public class LuaFieldReference : LuaMemberReference<FieldReference>
{
    private LuaTypeReference _type;
    public LuaFieldReference(LuaModuleDefinition module, FieldReference self) : base(module, self)
    {

    }
    public LuaTypeReference Type
        => _type ?? GetTypeReference(Resolve().FieldType);

    public virtual bool ContainsGenericParameter
        => Resolve().ContainsGenericParameter;
}

